<?php 
include('../header.php');
include('../src/langs.php');
include('../src/functions.php');
include('../mainmenu.php');

?>

<?php 
$cennik = 'content/prices.xml';
$contentPath = "";

    if (file_exists($cennik)) {
        $xml = simplexml_load_file($cennik);
        foreach( $xml -> path as $path ) {        
            if( $path["lang"] == $lang) {
                $contentPath = $path;
                break;
            }
        }
    }    
?>

<div id="PRICES_CONTENT">
</div>

<script type="text/javascript">
    $('#PRICES_CONTENT').load('<?php echo $contentPath;?>');
</script>

<?php 
include('../footer.php');
?>

